/**
 * 
 */
package com.mycompany.client;

import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.Window;

/**
 * @author coral.ma
 *
 */
public class MashLoading extends Window{

	private static MashLoading mashWindow; 
	
	public MashLoading() {
		setWidth(160);  
        setHeight(115);  
        setTitle("Loading");  
        setShowMinimizeButton(false);
        setShowCloseButton(false);
        setIsModal(true);  
        setShowModalMask(true);  
        centerInPage();  
        Label label = new Label("Loading");
        setAlign(Alignment.CENTER);
        addItem(label);
	}
	
	public static void showMashLoading() {
		if(mashWindow == null) {
			mashWindow = new MashLoading();
		}
		mashWindow.show();
	}
	
	public static void hideMashLoading() {
		mashWindow.hide();
	}
}
